package com.interface_;

/**
 * @Author 小闽
 * @Date 2024/9/13 17:01
 * @PackageName: com.interface_
 * @ClassName: interface01
 * @Description: 接口快速入门
 * @Version 1.0
 */
public class Interface01 {
    public static void main(String[] args) {
        // 创建手机设备对象
        Phone phone = new Phone();
        // 创建计算机设备对象
        Computer computer = new Computer();
        computer.work(phone);
        // 创建相机设备对象
        Camera camera = new Camera();
        computer.work(camera);
    }
}
